SitemapInjector: extract and inject localized links#51
Conversation
|
@sebastian-nagel is there a sitemap.xml with hreflang that can be used for testing? EDIT: as usual, after I ask the question, I find the answer: https://kpmg.com/tr/tr/sitemap.xml |
|
@sebastian-nagel I did not find anything wrong, but I did not manage to test it, it seems that this part is only invoked via hadoop. I tried to see if I could create some tests, however for what is worth, I have a segment containing the sitemap.xml with hreflang from the previous comment. |
|
I've tested on a local copy of But for the kpmg sitemap it does not work - only the "normal" sitemap URLs are injected, not the localized ones. Need to look into it. But could be also that the sitemap is broken. |
|
@sebastian-nagel I've got several errors on the URLs: I tried to run the class directly but it did not work. It sems there is a problem when parsing that sitemap. Although they look similar. I did not find any evident difference. |
This is addressed in crawler-commons/crawler-commons#572. |
|
@lfoppiano, thanks for testing and for uncovering the issue with the XHTML namespace URI. |
Extract and inject localized links (crawler-commons sitemap link attributes).
injectURLsto allow iterating over sitemap URL and localized links.sitemap_extension_localized_linkto count the number of localized links injected.Minor changes: